package com.service;

import org.springframework.stereotype.Service;

import com.common.utils.DateUtils;
import com.common.utils.base.UuidUtil;
import com.entity.Connection;
import com.service.base.BaseServiceImp;

@Service("ConnectionService")
public class ConnectionServiceImpl extends BaseServiceImp<Connection> implements ConnectionService{

	@Override
	public String insert(Connection o) {
		o.setId(UuidUtil.get32UUID());
		o.setClickState(2);
		o.setClickTime(DateUtils.getDate("yyyy/MM/dd HH:mm:ss"));
		baseDao.insert(o);
		return o.getId();
	}

}
